package com.ruoyi;

import com.ruoyi.memo.controller.MemoNoteController;
import com.ruoyi.memo.domain.Countdown;
import com.ruoyi.memo.domain.MemoNote;
import com.ruoyi.memo.domain.MemoSchedule;
import com.ruoyi.memo.service.impl.CountdownServiceImpl;
import com.ruoyi.memo.service.impl.MemoNoteServiceImpl;

import com.ruoyi.memo.service.impl.MemoScheduleServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Date;

@SpringBootTest
public class test {
    @Autowired
    private MemoNoteServiceImpl memoNoteController;
    @Autowired
    private MemoScheduleServiceImpl memoScheduleController;
    @Autowired
    private CountdownServiceImpl countdownController;
    @Test
    public void test1() {
//       Countdown countdown = new Countdown();
        MemoSchedule memoSchedule = new MemoSchedule();
        memoSchedule.setScheduleDate(new Date());
        memoSchedule.setTitle("测试");
        memoSchedule.setUserId(1L);
       memoScheduleController.insertMemoSchedule(memoSchedule);
//       countdown.setCountdownTime("01:00:00");
//       countdown.setTitle("测试");
//       countdown.setUserId(1L);
//       countdownController.insertCountdown(countdown);
    }
}
